package demo.Input;

import demo.until.FileUtil;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import static demo.until.FileUtil.FILE_PATH;

public class ByteStreamDemo2 {
    public static void main(String[] args) throws IOException {
        FileUtil.checkPath(FILE_PATH);

        //1.创建对象
        FileInputStream fis = new FileInputStream(FILE_PATH + "a.txt");

        int c;

        while((c=fis.read())!=-1){
            System.out.println(c);
        }

        fis.close();
    }
}
